import 'package:chat_app_project/models/res_entity.dart';
import 'package:chat_app_project/models/user_login_info_entity.dart';
import 'package:chat_app_project/tool/request_client.dart';

const LOGIN_URL = "/app/member/login/by/phone";
// const LOGIN_URL =
//     "/vtask-service/app/circle/join";

class LoginDao {
  static Future<ResEntity> loginByPhone(Map<String, dynamic> params) async {
    var req = RequestClient();
    final response = await req.post(LOGIN_URL, data: params);
    return ResEntity.fromJson(response.data);
  }
}
